using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter15
{
	/// <summary>
	/// Example02: Watch Out for Potholes!
	/// A car with a mass of 1300 kg is constructed so that 
	/// its frame is supported by four springs. Each spring has 
	/// a force constant of 20000 N/m. If two people riding in 
	/// the car have a combined mass of 160 kg, find the frequency 
	/// of vibration of the car after it is driven over a pothole 
	/// in the road.
	/// f = 1.18 Hz
	/// </summary>
	public class Example02
	{
		public Example02()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			// m a = - k x * 4
			// omega^2 = 4k/m
			L.Frequency f = new L.Frequency();
			f.Hz = Math.Sqrt(4.0*20000.0/1460.0)/2.0/Math.PI;
			result+=Convert.ToString(f.Hz);
		}
	}
}
